package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import java.util.List;

import static org.jsola.hr.example.EmpNoticeExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpNoticeExample.E_CONTENT;
import static org.jsola.hr.example.EmpNoticeExample.E_CONTENT_HAS_STYLE;
import static org.jsola.hr.example.EmpNoticeExample.E_FILE;
import static org.jsola.hr.example.EmpNoticeExample.E_FORMAL_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.E_IS_ONLINE;
import static org.jsola.hr.example.EmpNoticeExample.E_NOTICE_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.E_NO_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.E_NO_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.E_OFFLINE_DATE;
import static org.jsola.hr.example.EmpNoticeExample.E_PROPS;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_DATE;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_ID;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_RANGE;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_RANGE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_TYPE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_USER_ID;
import static org.jsola.hr.example.EmpNoticeExample.E_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.E_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.E_READ_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.E_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.E_TITLE;
import static org.jsola.hr.example.EmpNoticeExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.EmpNoticeExample.M_CONTENT_HAS_STYLE_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_CONTENT_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_CONTENT_NOT_NULL;
import static org.jsola.hr.example.EmpNoticeExample.M_FILE_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_NOTICE_TYPE_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_NO_READ_EMP_IDS_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_PROPS_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_PUBLISH_EMP_ID_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_PUBLISH_EMP_RANGE_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_PUBLISH_EMP_TYPE_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_PUBLISH_USER_ID_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_READ_EMP_IDS_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_TITLE_MAX;
import static org.jsola.hr.example.EmpNoticeExample.M_TITLE_NOT_NULL;
import static org.jsola.hr.example.EmpNoticeExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpNoticeExample.N_CONTENT;
import static org.jsola.hr.example.EmpNoticeExample.N_CONTENT_HAS_STYLE;
import static org.jsola.hr.example.EmpNoticeExample.N_FILE;
import static org.jsola.hr.example.EmpNoticeExample.N_FORMAL_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.N_IS_ONLINE;
import static org.jsola.hr.example.EmpNoticeExample.N_NOTICE_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.N_NO_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.N_NO_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.N_OFFLINE_DATE;
import static org.jsola.hr.example.EmpNoticeExample.N_PROPS;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_DATE;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_ID;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_RANGE;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_RANGE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_TYPE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_USER_ID;
import static org.jsola.hr.example.EmpNoticeExample.N_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.N_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.N_READ_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.N_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.N_TITLE;

/**
 * 员工通知
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工通知】的参数")
@Data
public class EmpNoticeAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_READ_EMP_IDS, example = E_READ_EMP_IDS)
    @Length(max = 2147483647, message = M_READ_EMP_IDS_MAX)
    private String readEmpIds;

    @ApiModelProperty(notes = N_NO_READ_EMP_IDS, example = E_NO_READ_EMP_IDS)
    @Length(max = 2147483647, message = M_NO_READ_EMP_IDS_MAX)
    private String noReadEmpIds;

    @ApiModelProperty(notes = N_READ_COUNT, example = E_READ_COUNT)
    private Integer readCount;

    @ApiModelProperty(notes = N_NO_READ_COUNT, example = E_NO_READ_COUNT)
    private Integer noReadCount;

    @ApiModelProperty(notes = N_FILE, example = E_FILE)
    @Length(max = 10000, message = M_FILE_MAX)
    private String file;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_TITLE, example = E_TITLE, required = true)
    @NotNull(message = M_TITLE_NOT_NULL)
    @Length(max = 2147483647, message = M_TITLE_MAX)
    private String title;

    @ApiModelProperty(notes = N_CONTENT, example = E_CONTENT, required = true)
    @NotNull(message = M_CONTENT_NOT_NULL)
    @Length(max = 2147483647, message = M_CONTENT_MAX)
    private String content;

    @ApiModelProperty(notes = N_CONTENT_HAS_STYLE, example = E_CONTENT_HAS_STYLE)
    @Length(max = 2147483647, message = M_CONTENT_HAS_STYLE_MAX)
    private String contentHasStyle;

    @ApiModelProperty(notes = N_PUBLISH_DATE, example = E_PUBLISH_DATE)
    private Date publishDate;

    @ApiModelProperty(notes = N_PUBLISH_EMP_ID, example = E_PUBLISH_EMP_ID)
    @Length(max = 2147483647, message = M_PUBLISH_EMP_ID_MAX)
    private String publishEmpId;

    @ApiModelProperty(notes = N_PUBLISH_USER_ID, example = E_PUBLISH_USER_ID)
    @Length(max = 2147483647, message = M_PUBLISH_USER_ID_MAX)
    private String publishUserId;

    @ApiModelProperty(notes = N_PUBLISH_EMP_RANGE_IS_ALL, example = E_PUBLISH_EMP_RANGE_IS_ALL)
    private Boolean publishEmpRangeIsAll;

    @ApiModelProperty(notes = N_PUBLISH_EMP_RANGE, example = E_PUBLISH_EMP_RANGE)
    @Length(max = 2147483647, message = M_PUBLISH_EMP_RANGE_MAX)
    private String publishEmpRange;

    @ApiModelProperty(notes = N_PUBLISH_EMP_TYPE_IS_ALL, example = E_PUBLISH_EMP_TYPE_IS_ALL)
    private Boolean publishEmpTypeIsAll;

    @ApiModelProperty(notes = N_PUBLISH_EMP_TYPE, example = E_PUBLISH_EMP_TYPE)
    @Length(max = 2147483647, message = M_PUBLISH_EMP_TYPE_MAX)
    private String publishEmpType;

    @ApiModelProperty(notes = N_FORMAL_TYPE, example = E_FORMAL_TYPE)
    private Integer formalType;

    @ApiModelProperty(notes = N_PROPS, example = E_PROPS)
    @Length(max = 2147483647, message = M_PROPS_MAX)
    private String props;

    @ApiModelProperty(notes = N_READ_STATUS, example = E_READ_STATUS)
    private Integer readStatus;

    @ApiModelProperty(notes = N_IS_ONLINE, example = E_IS_ONLINE)
    private Boolean isOnline;

    @ApiModelProperty(notes = N_OFFLINE_DATE, example = E_OFFLINE_DATE)
    private Date offlineDate;

    @ApiModelProperty(notes = N_NOTICE_TYPE, example = E_NOTICE_TYPE)
    @Length(max = 11, message = M_NOTICE_TYPE_MAX)
    private String noticeType;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;

    @ApiModelProperty(notes = "公告立即发布", example = "true")
    private Boolean isPublishNow;

    @ApiModelProperty(notes = "公告发布范围,员工id(部分员工时使用)")
    private String[] publishEmpIds;

    @ApiModelProperty(notes = "公告发布范围,员工性质code(指定范围是使用时使用)")
    private Integer[] publishEmpTypes;


}

